// 文件上传
const getUploadFileExt = require("../utils/getUploadFileExt");
const getUploadFileName = require("../utils/getUploadFileName");
const checkDirExist = require("../utils/checkDirExist");
const getUploadDirName = require("../utils/getUploadDirName");
const path = require("path");
// 文件上传
const koaBody = require("koa-body");
module.exports = app => {
  app.use(
    koaBody({
      multipart: true,
      formidable: {
        maxFileSize: 200 * 1024 * 1024
      }
    })
  );
};
